]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyring: Fix button disabled when prompting for confirmation
authorStef Walter <stefw@gnome.org>
Wed, 17 Apr 2013 10:02:12 +0000 (12:02 +0200)
committerStef Walter <stefw@gnome.org>
Wed, 8 May 2013 20:17:43 +0000 (22:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=696304

js/ui/components/keyring.js

index b38888f5a8cf388acb9244d4114e01469fa6162e..ae67b5510b8672eb42bc8dc7618a83a5dc0a4972 100644 (file)
@@ -143,8 +143,15 @@ const KeyringDialog = new Lang.Class({
     },
 
     _updateSensitivity: function(sensitive) {
-        this._passwordEntry.reactive = sensitive;
-        this._passwordEntry.clutter_text.editable = sensitive;
+        if (this._passwordEntry) {
+            this._passwordEntry.reactive = sensitive;
+            this._passwordEntry.clutter_text.editable = sensitive;
+        }
+
+        if (this._confirmEntry) {
+            this._confirmEntry.reactive = sensitive;
+            this._confirmEntry.clutter_text.editable = sensitive;
+        }
 
         this._continueButton.can_focus = sensitive;
         this._continueButton.reactive = sensitive;